<?php
/**
 * Model for performing CRUD operations on cities database table.
 * @package cms-countries/models
 * @category Model
 * 
 * @author Mark Angelo Angulo
 * @copyright (c) 2014
 */
class Test2_Model extends Test {
    
    
    /**
     *  Constructor method.
     */
    function __construct()
    {
	parent::__construct();
        
        $cms = $this->cms;
        
        $this->table = $cms['db_prefix'] . 'countries';
        $this->primary_key = 'id';
        
    }
    
    function cities()
    {
        $cms = $this->cms;
        return $this->has_many($cms['db_prefix'] . 'cities', 'country_code', 'code');
    }
}

/* End of file citye_model.php */
/* Location: ./application/modules/cms-cities/models/city_model.php */